<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New User Registration</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
<style type="text/css">
<!--
.style1 {
	font-size: 12px;
	color: #000000;
}
.style2 {
	color: #000000
}
.style3 {color: #333333}
-->
</style>
</head>

<body   background="../images/books_computer.jpg">
<?php
session_start();
?>
<p>&nbsp;</p>

<form action="newuser_save.php" method="post">
<center><h1 class="style3">New Books Registration </h1>
</center>
<center>
  <table width="502" height="341" align="center" >

    <tr>
	 <td width="151" height="45"><h3 class="style2">Book Name :</h3></td>
    <td width="380"><input type="text"  name="bookname"/></td>
  </tr>	
  <tr>
    <td height="42"><h3 class="style2">Author Name :</h3></td>
   <td width="380"><input type="text" name="author"/></td>
 
  </tr>
  <tr>
    <td height="38"><h3 class="style2">Title</h3></td>
   <td width="380"><input type="text"  name="title"/></td>
   
  </tr>
  <tr>
    <td height="45"><h3 class="style2">Price :</h3></td>
   <td width="380"><input type="text"  name="price"/></td>
   
  </tr>
  <tr>
    <td height="41"><h3 class="style1">Image :</h3></td>
   <td width="380"><input  type="file"  name="imageurl"/></td>
   
  </tr>
 

</table></center>
<?php
if(isset($_REQUEST['submit']))
{
$bookname=$_REQUEST['bookname'];
$_SESSION['book_name']=$bookname;
$author=$_REQUEST['author'];
$_SESSION['author']=$author;
$title=$_REQUEST['title'];
$_SESSION['title']=$title;
$price=$_REQUEST['price'];
$_SESSION['price']=$price;
$imageurl=$_REQUEST['imageurl'];
$_SESSION['imageurl']=$imageurl;

header("location:newbook_save.php");
}
?>
<center><input name="submit" type="submit" id="submit" value="Submit"  /></center>

</form>

</body>
</html>